home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / utilities / pu081.dms / pu081.adf / Units / units.doc < prev    next >
Text File  |  1988-02-02  |  2KB  |  69 lines

  1. Hello, sorry, but no formal man page at this time...
  2. Enclosed, however, is a units conversion program I wrote.
  3. It allows you to convert lots of units to lots of other units...
  4. It is fairly self explainatory. It inquires which type of unit
  5. conversion you are interested in, such as length etc... and then
  6. asks for the specific unit such as "inches". Then, it asks
  7. how many inches.... the result is a table converting n number of
  8. inches to every other unit of length the program is familiar with.
  9.  
  10. It also has a chart option, which allows you to create charts
  11. of say... mph vs m/sec for 23 mph through 45 mph in increments of
  12. 2 mph etc...
  13.  
  14. It includes lots of units... even things like footcandles, stones
  15. etc... It also does error-checking (and correction if possible) of
  16. user inputs.
  17.  
  18. It is easily expandable to include more unit types, by editing
  19. the include file unit_table.h.
  20.  
  21. I hope lots of people will use this, and send me all sorts of
  22. enhancement requests/bug reports etc... so I will be motivated
  23. to improve it, and add a real man page a re-post it with all
  24. the fixes/enhancements from the net.  I like it, and I hope
  25. you do to. The biggest bug is that it uses an ansi escape sequence
  26. to clear the screen before each menu... this is obviously a big
  27. kludge since I obviously should have used curses, but my pc doesn't
  28. have curses! 
  29.  
  30. One other bug is that the main menu is hardwired into u.c, it should
  31. (for ease of enhancement) be loaded in from the data in unit_table.h...
  32.  
  33. I have tested the program under 4.3BSD, Sun 3.0, MS-DOS, VMS 4.5
  34. and Plexus System III.... it should be portable to just about
  35. anything...
  36.  
  37. Enjoy, 
  38.  
  39. Greg
  40.  
  41.  
  42. ----
  43.       Gregory R. Simpson       
  44.  
  45. ----------------------------------------------------------------------
  46.  
  47.  
  48. 28-Sep-87
  49.  
  50. Modified "units" to run in a console window under workbench.  Compiled
  51. under Aztec C v3.4a like this:
  52.  
  53.     cc -z3000 +fi units
  54.     ln units.o -lma -lc
  55.  
  56. The executable is about 1/3 smaller than the original Lattice version.
  57. Mathieeedoubbas.library must be present in your LIBS: directory to run
  58. this.
  59.  
  60. The supplied icon, units.info, contains one critical piece of
  61. information:  the TOOLTYPES value WINDOW=<window spec> must be present
  62. or else the program will not run from Workbench.
  63.  
  64. There is no difference running from CLI.
  65.  
  66.  
  67. ...Bill Barton
  68.  
  69.